from openpyxl import Workbook
# 创建Excel表格的对象
wb = Workbook()
wb.create_sheet("table1",0)
wb.create_sheet("table2",1)
wb.create_sheet("table3",2)

ws = wb['table1'] # 选中某个表，根据title来选择
ws.cell(row=1,column=1).value = 'aaaaa'

print(wb.sheetnames) # 打印所有的sheet的名字
print(type(wb.sheetnames)) # list

